package com.xoa.dev.pz.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.xoa.model.enclosure.Attachment;
import com.xoa.dev.pz.model.PzPerson;
import com.xoa.dev.pz.model.PzPersonService;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

public class PzEasyAccident {

    private PzPerson pzPerson;
    private PzPersonService pzPersonService;
    private String gridName;
    private String gridUserId;
    private String gridUserNames;
    private String userName;//网格员

    private String pPoliticalStr;
    private String pEducationStr;
    private String gridLocation;//坐标
    //附件集合
    List<Attachment> attachmentList;

    public String getGridLocation() {
        return gridLocation;
    }

    public void setGridLocation(String gridLocation) {
        this.gridLocation = gridLocation;
    }

    public String getUserName() {
        return userName==null?"":userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getGridUserId() {
        return gridUserId;
    }

    public String getGridUserNames() {
        return gridUserNames;
    }

    public void setGridUserId(String gridUserId) {
        this.gridUserId = gridUserId;
    }

    public void setGridUserNames(String gridUserNames) {
        this.gridUserNames = gridUserNames;
    }

    public void setGridName(String gridName) {
        this.gridName = gridName;
    }



    public String getGridName() {
        return gridName;
    }



    public PzPerson getPzPerson() {
        return pzPerson;
    }

    public void setPzPerson(PzPerson pzPerson) {
        this.pzPerson = pzPerson;
    }

    public PzPersonService getPzPersonService() {
        return pzPersonService;
    }

    public void setPzPersonService(PzPersonService pzPersonService) {
        this.pzPersonService = pzPersonService;
    }
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.EASY_ACCIDENT_ID
     *
     * @mbggenerated
     */
    private Integer easyAccidentId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.DANGER_DEGREE
     *
     * @mbggenerated
     */
    private String dangerDegree;
    private String dangerDegreeStr;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.DISEASE
     *
     * @mbggenerated
     */
    private String disease;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.FIRST_DATE
     *
     * @mbggenerated
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date firstDate;

    public String getFirstDateSrt() {
        return firstDateSrt;
    }

    public void setFirstDateSrt(String firstDateSrt) {
        this.firstDateSrt = firstDateSrt;
    }

    private String firstDateSrt;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.REHABILITATIVE
     *
     * @mbggenerated
     */
    private String rehabilitative;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.FAMILY_ECONOMIC
     *
     * @mbggenerated
     */
    private String familyEconomic;
    private String familyEconomicStr;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.CANCEL_TIME
     *
     * @mbggenerated
     */
    private Date cancelTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.ACCIDENT_HISTORY
     *
     * @mbggenerated
     */
    private String accidentHistory;
    private String accidentHistoryStr;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.ACCEPT_TREATMENT
     *
     * @mbggenerated
     */
    private String acceptTreatment;
    private String acceptTreatmentStr;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.HOSPITAL
     *
     * @mbggenerated
     */
    private String hospital;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.SUBSISTENCE_ALLOWANCES
     *
     * @mbggenerated
     */
    private String subsistenceAllowances;
    private String subsistenceAllowancesStr;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.USER_ID
     *
     * @mbggenerated
     */
    private String userId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.GRID_ID
     *
     * @mbggenerated
     */
    private Integer gridId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.CREAT_USER
     *
     * @mbggenerated
     */
    private String creatUser;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column pz_easy_accident.CREAT_TIME
     *
     * @mbggenerated
     */
    private String creatTime;

    private String pName;

    private String pCardId;

    private Integer cou;

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getpCardId() {
        return pCardId;
    }

    public void setpCardId(String pCardId) {
        this.pCardId = pCardId;
    }

    public Integer getCou() {
        return cou;
    }

    public void setCou(Integer cou) {
        this.cou = cou;
    }

    private int inputFail;

    private int inputSuccess;

    private String faillReason;

    public int getInputFail() {
        return inputFail;
    }

    public void setInputFail(int inputFail) {
        this.inputFail = inputFail;
    }

    public int getInputSuccess() {
        return inputSuccess;
    }

    public void setInputSuccess(int inputSuccess) {
        this.inputSuccess = inputSuccess;
    }

    public String getFaillReason() {
        return faillReason;
    }

    public void setFaillReason(String faillReason) {
        this.faillReason = faillReason;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.EASY_ACCIDENT_ID
     *
     * @return the value of pz_easy_accident.EASY_ACCIDENT_ID
     *
     * @mbggenerated
     */
    public Integer getEasyAccidentId() {
        return easyAccidentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.EASY_ACCIDENT_ID
     *
     * @param easyAccidentId the value for pz_easy_accident.EASY_ACCIDENT_ID
     *
     * @mbggenerated
     */
    public void setEasyAccidentId(Integer easyAccidentId) {
        this.easyAccidentId = easyAccidentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.DANGER_DEGREE
     *
     * @return the value of pz_easy_accident.DANGER_DEGREE
     *
     * @mbggenerated
     */
    public String getDangerDegree() {
        return dangerDegree;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.DANGER_DEGREE
     *
     * @param dangerDegree the value for pz_easy_accident.DANGER_DEGREE
     *
     * @mbggenerated
     */
    public void setDangerDegree(String dangerDegree) {
        this.dangerDegree = dangerDegree == null ? null : dangerDegree.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.DISEASE
     *
     * @return the value of pz_easy_accident.DISEASE
     *
     * @mbggenerated
     */
    public String getDisease() {
        return disease;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.DISEASE
     *
     * @param disease the value for pz_easy_accident.DISEASE
     *
     * @mbggenerated
     */
    public void setDisease(String disease) {
        this.disease = disease == null ? null : disease.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.FIRST_DATE
     *
     * @return the value of pz_easy_accident.FIRST_DATE
     *
     * @mbggenerated
     */
    public Date getFirstDate() {
        return firstDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.FIRST_DATE
     *
     * @param firstDate the value for pz_easy_accident.FIRST_DATE
     *
     * @mbggenerated
     */
    public void setFirstDate(Date firstDate) {
        this.firstDate = firstDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.REHABILITATIVE
     *
     * @return the value of pz_easy_accident.REHABILITATIVE
     *
     * @mbggenerated
     */
    public String getRehabilitative() {
        return rehabilitative;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.REHABILITATIVE
     *
     * @param rehabilitative the value for pz_easy_accident.REHABILITATIVE
     *
     * @mbggenerated
     */
    public void setRehabilitative(String rehabilitative) {
        this.rehabilitative = rehabilitative == null ? null : rehabilitative.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.FAMILY_ECONOMIC
     *
     * @return the value of pz_easy_accident.FAMILY_ECONOMIC
     *
     * @mbggenerated
     */
    public String getFamilyEconomic() {
        return familyEconomic;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.FAMILY_ECONOMIC
     *
     * @param familyEconomic the value for pz_easy_accident.FAMILY_ECONOMIC
     *
     * @mbggenerated
     */
    public void setFamilyEconomic(String familyEconomic) {
        this.familyEconomic = familyEconomic == null ? null : familyEconomic.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.CANCEL_TIME
     *
     * @return the value of pz_easy_accident.CANCEL_TIME
     *
     * @mbggenerated
     */
    public Date getCancelTime() {
        return cancelTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.CANCEL_TIME
     *
     * @param cancelTime the value for pz_easy_accident.CANCEL_TIME
     *
     * @mbggenerated
     */
    public void setCancelTime(Date cancelTime) {
        this.cancelTime = cancelTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.ACCIDENT_HISTORY
     *
     * @return the value of pz_easy_accident.ACCIDENT_HISTORY
     *
     * @mbggenerated
     */
    public String getAccidentHistory() {
        return accidentHistory;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.ACCIDENT_HISTORY
     *
     * @param accidentHistory the value for pz_easy_accident.ACCIDENT_HISTORY
     *
     * @mbggenerated
     */
    public void setAccidentHistory(String accidentHistory) {
        this.accidentHistory = accidentHistory == null ? null : accidentHistory.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.ACCEPT_TREATMENT
     *
     * @return the value of pz_easy_accident.ACCEPT_TREATMENT
     *
     * @mbggenerated
     */
    public String getAcceptTreatment() {
        return acceptTreatment;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.ACCEPT_TREATMENT
     *
     * @param acceptTreatment the value for pz_easy_accident.ACCEPT_TREATMENT
     *
     * @mbggenerated
     */
    public void setAcceptTreatment(String acceptTreatment) {
        this.acceptTreatment = acceptTreatment == null ? null : acceptTreatment.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.HOSPITAL
     *
     * @return the value of pz_easy_accident.HOSPITAL
     *
     * @mbggenerated
     */
    public String getHospital() {
        return hospital;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.HOSPITAL
     *
     * @param hospital the value for pz_easy_accident.HOSPITAL
     *
     * @mbggenerated
     */
    public void setHospital(String hospital) {
        this.hospital = hospital == null ? null : hospital.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.SUBSISTENCE_ALLOWANCES
     *
     * @return the value of pz_easy_accident.SUBSISTENCE_ALLOWANCES
     *
     * @mbggenerated
     */
    public String getSubsistenceAllowances() {
        return subsistenceAllowances;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.SUBSISTENCE_ALLOWANCES
     *
     * @param subsistenceAllowances the value for pz_easy_accident.SUBSISTENCE_ALLOWANCES
     *
     * @mbggenerated
     */
    public void setSubsistenceAllowances(String subsistenceAllowances) {
        this.subsistenceAllowances = subsistenceAllowances == null ? null : subsistenceAllowances.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.USER_ID
     *
     * @return the value of pz_easy_accident.USER_ID
     *
     * @mbggenerated
     */
    public String getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.USER_ID
     *
     * @param userId the value for pz_easy_accident.USER_ID
     *
     * @mbggenerated
     */
    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.GRID_ID
     *
     * @return the value of pz_easy_accident.GRID_ID
     *
     * @mbggenerated
     */
    public Integer getGridId() {
        return gridId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.GRID_ID
     *
     * @param gridId the value for pz_easy_accident.GRID_ID
     *
     * @mbggenerated
     */
    public void setGridId(Integer gridId) {
        this.gridId = gridId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.CREAT_USER
     *
     * @return the value of pz_easy_accident.CREAT_USER
     *
     * @mbggenerated
     */
    public String getCreatUser() {
        return creatUser;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.CREAT_USER
     *
     * @param creatUser the value for pz_easy_accident.CREAT_USER
     *
     * @mbggenerated
     */
    public void setCreatUser(String creatUser) {
        this.creatUser = creatUser == null ? null : creatUser.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column pz_easy_accident.CREAT_TIME
     *
     * @return the value of pz_easy_accident.CREAT_TIME
     *
     * @mbggenerated
     */
    public String getCreatTime() {
        return creatTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column pz_easy_accident.CREAT_TIME
     *
     * @param creatTime the value for pz_easy_accident.CREAT_TIME
     *
     * @mbggenerated
     */
    public void setCreatTime(String creatTime) {
        this.creatTime = creatTime == null ? null : creatTime.trim();
    }

    public List<Attachment> getAttachmentList() {
        return attachmentList;
    }

    public void setAttachmentList(List<Attachment> attachmentList) {
        this.attachmentList = attachmentList;
    }


    public String getDangerDegreeStr() {
        return dangerDegreeStr;
    }

    public void setDangerDegreeStr(String dangerDegreeStr) {
        this.dangerDegreeStr = dangerDegreeStr;
    }

    public String getFamilyEconomicStr() {
        return familyEconomicStr;
    }

    public void setFamilyEconomicStr(String familyEconomicStr) {
        this.familyEconomicStr = familyEconomicStr;
    }

    public String getpPoliticalStr() {
        return pPoliticalStr;
    }

    public void setpPoliticalStr(String pPoliticalStr) {
        this.pPoliticalStr = pPoliticalStr;
    }

    public String getpEducationStr() {
        return pEducationStr;
    }

    public void setpEducationStr(String pEducationStr) {
        this.pEducationStr = pEducationStr;
    }

    public String getAccidentHistoryStr() {
        return accidentHistoryStr;
    }

    public void setAccidentHistoryStr(String accidentHistoryStr) {
        this.accidentHistoryStr = accidentHistoryStr;
    }

    public String getAcceptTreatmentStr() {
        return acceptTreatmentStr;
    }

    public void setAcceptTreatmentStr(String acceptTreatmentStr) {
        this.acceptTreatmentStr = acceptTreatmentStr;
    }

    public String getSubsistenceAllowancesStr() {
        return subsistenceAllowancesStr;
    }

    public void setSubsistenceAllowancesStr(String subsistenceAllowancesStr) {
        this.subsistenceAllowancesStr = subsistenceAllowancesStr;
    }
}